#include <iostream>
#include <list>
template <typename T>
void print(const T &arr)
{
    for (auto it = arr.begin(); it != arr.end(); it++)
    {
        std::cout << *it << "\t";
    }
    std::cout << std::endl;
}
int main()
{
    std::list<int> list = {10, 5, 4, 67, 9};
    auto ite = list.begin();
    for (int idx = 0; idx < 3; idx++)
    {
        ite++;
    }
    list.insert(ite, 99);
    print(list);

    list.reverse();
    print(list);
}